// pages/us/index.js
const app = getApp();
const db = wx.cloud.database()
Page({
  data: {
    mapSetting:{
        latitude:'38.036792',
        longitude:'114.542012',
        scale:16,
        data:{},
        markers:[{
            id:1,
            latitude:'38.036792',
            longitude:'114.542012',
            width: 30,
            height: 40,
            callout:{
              content:"石家庄市长安区红星美凯龙",
              borderRadius:5,
              padding:5,
              fontSize: 16,
              textAlign: 'center',
              display: "ALWAYS"
            }
        }]
    }
  },
  onLoad(options) {
    db.collection('mine').get({
        success: res => {
            const data = res.data[0];
            console.log(res)
            this.setData({
                data
            })
        },
        fail: f => {
            console.log('f', f)
        }
    })
  },
  onShow() {
    this.getTabBar().setData({
        selected:3
    })
  },

  
  onPullDownRefresh() {

  },
 
  
})